package com.txr.news.service;

import com.txr.news.pojo.Result;
import com.txr.news.pojo.entity.User;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

public interface UserService {

    Boolean registerUser(User user);

    Result loginUser(User user);

    User getUserInfo(Integer id);

    Boolean updateUserInfo(User user);

    Result updateUserPwd(Integer userId, String oldPwd, String newPwd);

    Boolean updateUserPic(Integer userId, String avatar);
}
